package searchPack;

import java.io.IOException;

import org.apache.lucene.index.CorruptIndexException;
import org.apache.lucene.queryParser.ParseException;

public abstract class TypeOfSearch {

    public String buildQuery(String textToFind) throws CorruptIndexException, IOException, ParseException {
        if (!textToFind.equals("")) {
            return parseQuery(textToFind);
        }
        return "";
    }

    public abstract String parseQuery(String s);

}
